package cn.xuguowen.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * ClassName: GarbageWebSocketConfig
 * Package: cn.xuguowen.config
 * Description: websocket的配置:使当前项目具备websocket
 *
 * @Author 徐国文
 * @Create 2023/5/22 0:05
 * @Version 1.0
 */
@Configuration
public class GarbageWebSocketConfig {

    @Bean
    public ServerEndpointExporter getServerEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
